package com.humble.voicelinedemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.humble.voiceline.VoiceLineView
import java.util.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val timer = Timer()
        timer.schedule(object :TimerTask(){
            override fun run() {
                findViewById<VoiceLineView>(R.id.voiceLineView).setVolume((Math.random()*100).toInt())
            }
        },0,3000)
    }
}